home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3s
/
puts.z
/
puts
Wrap
Text File
|
1998-10-20
|
2KB
|
67 lines
PPPPUUUUTTTTSSSS((((3333SSSS)))) PPPPUUUUTTTTSSSS((((3333SSSS))))
NNNNAAAAMMMMEEEE
puts, fputs - put a string on a stream
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
iiiinnnntttt ppppuuuuttttssss ((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ssss))));;;;
iiiinnnntttt ffffppppuuuuttttssss ((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ssss,,,, FFFFIIIILLLLEEEE ****ssssttttrrrreeeeaaaammmm))));;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_p_u_t_s writes the null-terminated string pointed to by _s ,followed by a
new-line character, to the standard output stream _s_t_d_o_u_t.
_f_p_u_t_s writes the null-terminated string pointed to by _s to the named
output _s_t_r_e_a_m.
Neither function writes the terminating null character.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
exit(2), lseek(2), write(2), abort(3C), fclose(3S), ferror(3S),
fopen(3S), fread(3S), printf(3S), putc(3S), stdio(3S).
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
On success both routines return the number of characters written;
otherwise they return EEEEOOOOFFFF.... This will happen if the routines try to write
on a file that has not been opened for writing.
NNNNOOOOTTTTEEEESSSS
_p_u_t_s appends a new-line character while _f_p_u_t_s does not.
PPPPaaaaggggeeee 1111